package org.nutz.j2cache.spring;

import org.nutz.dao.Dao;
import org.springframework.transaction.annotation.Transactional;

public class NutzHappyService {
	
	protected Dao dao;
	
	public void setDao(Dao dao) {
		this.dao = dao;
	}

	@Transactional(rollbackFor=Exception.class)
	public void doUserClear() {
		dao.clear("t_user");
		throw new RuntimeException();
	}
}
